<style lang="less">
.app-box{
  height: 54px;
}
.app-header{
  height:54px;
  line-height: 54px;
  position: relative;
  text-align: center;
  background: #23a5a5;
  color: #fff;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:4;
  .tit{
    font-size: 18px;
    padding:0 50px;
  }
  .iconfont{
    position: absolute;
    left: 15px;
    top:0;
    color: #fff;
  }
}
</style>
<template>
<div class="app-box" v-if="showstate">
  <div id="app-header" class="app-header">
    <a class="iconfont icon-back" href="javascript:history.go(-1);"></a>
    <div class="tit">{{$route.name}}</div>
  </div>
</div>
</template>

<script>
export default {
  data () {
    return {
      showstate:false,
    }
  },
  created(){
      if(navigator.userAgent.toLowerCase().match(/MicroMessenger/i)=="micromessenger"){
        //是微信打开的
        this.showstate = false;
      } else {
        this.showstate = false;
      }
  },
  methods:{
    
  }
}
</script>